package org.example.design.designmode.decoratorpattern.simple;

public class MilkDecorator extends BaseBattercakeDecorator {


    public MilkDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg()+"加一杯牛奶";
    }

    @Override
    protected int getPrice() {
        return super.getPrice()+5;
    }
}
